<?php


/**
 * Skeleton subclass for performing query and update operations on the 'gebruiker' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package    propel.generator.database
 */
class GebruikerPeer extends BaseGebruikerPeer {
    
    public static function login($user,$pass)
    {
        $c = new Criteria();
        $c->add(self::EMAIL,$user);
        $c->add(self::WACHTWOORD, UserLogin::doEncryptPass($user,$pass));
        return self::doSelectOne($c);
    }
    
    public static function checkMail($mail)
    {
        $c = new Criteria();
        $c->add(self::EMAIL, $mail, Criteria::EQUAL);
        return self::doCount($c) > 0; 
    }
    
    public static function getRanglijst()
    {
        
    }

} // GebruikerPeer
